<?php
/**
 *+------------------
 * Lflow
 *+------------------
 * Copyright (c) 2023~2030 gitee.com/liu_guan_qing All rights reserved.本版权不可删除，侵权必究
 *+------------------
 * Author: Mr.April(405784684@qq.com)
 *+------------------
 */
declare (strict_types=1);

namespace lflow\entity;

class CCOrder
{

    use Common;

    private string $order_id;
    private string $actor_id;
    private string $creator;
    private string $create_time;
    private string $finish_time;
    private int $status;

    public function getOrderId(): string
    {
        return $this->orderId ?? '';
    }

    public function setOrderId(string $orderId)
    {
        $this->order_id = $orderId;
    }

    public function getCreator(): string
    {
        return $this->creator ?? '';
    }

    public function setCreator(string $creator): void
    {
        $this->creator = $creator;
    }

    public function getActorId(): string
    {
        return $this->actorId ?? '';
    }

    public function setActorId(string $actorId): void
    {
        $this->actor_id = $actorId;
    }

    public function getStatus(): int
    {
        return $this->status ?? 1;
    }

    public function setStatus(int $status): void
    {
        $this->status = $status;
    }

    public function getCreateTime(): string
    {
        return $this->create_time ?? '';
    }

    public function setCreateTime(string $createTime): void
    {
        $this->create_time = createTime;
    }

    public function getFinishTime(): string
    {
        return $this->finish_time ?? '';
    }

    public function setFinishTime(string $finishTime): void
    {
        $this->finish_time = $finishTime;
    }

    public function toString(): string
    {
        return json_encode(get_object_vars($this));

    }

    public function toArray(): array
    {
        return get_object_vars($this);
    }

}